package com.sun.androidexerciseproject.function.receiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

import com.orhanobut.logger.Logger;
import com.sun.androidexerciseproject.function.service.MyTestService;

/**
 * Created by Administrator on 2016/5/24 0024.
 */
public class MyTestReceiver extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        Logger.d("MyTestReceiver!!!");
        context.startService(new Intent(context, MyTestService.class));
    }
}
